package BanyuanClub.Work.Day0309.猜数字;

import BanyuanClub.Work.Day0309.猜数字.Master;

import java.util.Scanner;

public class Text {
    public static void main(String[] args) throws InterruptedException {
        long start = System.currentTimeMillis();
        Master master = new Master();
        Guest zs = new Guest(master);
        zs.setName("张三");
        Guest ls = new Guest(master);
        ls.setName("李四");
        master.masterAnswer();
        zs.start();
        ls.start();
        zs.join();
        ls.join();
        System.out.println(System.currentTimeMillis() - start);

    }
}
